package org.zn.etl.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.zn.datax.param.JobParam;
import org.zn.etl.service.DataxService;

@RestController
@RequestMapping("datax")
public class DataxJobParamController {
	
	@Autowired
	private	DataxService dataxService; 
	
	@GetMapping("/job/{jobName}")
	public JobParam getJobParam(@PathVariable("jobName") String jobName) {
		
		JobParam jp=dataxService.getJobParam(jobName);
		
		return jp;
		
	}

}
